package com.button.project.init;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@WebListener
public class InitConstantListener implements ServletContextListener {
	private static final Logger logger = LoggerFactory.getLogger(InitConstantListener.class);
	
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		logger.info("初始化数据.");
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		logger.info("销毁数据.");
	}

}
